Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added options.noShadow #406

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

cgalvarez
Copy link

This PR provides a new feature: avoid use of visual aid shadow through options.noShadow.

This feature is specially useful when the target is svg or canvas, where you want to draw a new element instead of inserting it before/after a node under the parent.

The PR avoids all the DOM insertions/deletions related to the shadow processing, improving the performance of dragula. The drop JavaScript event is passed as parameter to the drop event. This way the user can place/draw the new element at the exact coordinates of dropping.

@cgalvarez
Copy link
Author

Hi. The PR has no errors, and all tests pass. Don't know why, but sometimes when installing the NPM deps (usually when downloading phantomjs from bitbucket) some packages fail (I suffered this error on my own local dev machine indeed). Please, check the Travis CI log, because I think I cannot relaunch the Travis CI test & build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant